﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Teatime.Extensions
{
    public static class UrlHelperExtension
    {
        public static string Home(this UrlHelper helper)
        {
            return helper.Content("~/");
        }

        public static string Dashboard(this UrlHelper helper)
        {
            return helper.Content("~/Dashboard");
        }

        public static string Image(this UrlHelper helper, string fileName)
        {
            return helper.Content("~/assets/images/{0}".FormatWith(fileName));
        }

        public static string Stylesheet(this UrlHelper helper, string fileName)
        {
            return helper.Content("~/assets/stylesheets/{0}".FormatWith(fileName));
        }

        public static string Script(this UrlHelper helper, string fileName)
        {
            return helper.Content("~/assets/scripts/{0}".FormatWith(fileName));
        }

        public static string NoIcon(this UrlHelper helper)
        {
            return Image(helper, "noIcon.png");
        }
    }
}